@import url('https://fonts.googleapis.com/css?family=Lato&display=swap');

.body {
  background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  font-family: 'Lato', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  margin: 0;

  h2 {
    position: absolute;
    top: 10px;
  }

  .range-container {
    position: relative;

    input {
      width: 300px;
      margin: 18px 0;
      -webkit-appearance: none;
      outline: none;

      &::-webkit-slider-runnable-track {
        background: purple;
        border-radius: 4px;
        width: 100%;
        height: 10px;
        cursor: pointer;
      }

      &::-webkit-slider-thumb {
        -webkit-appearance: none;
        height: 24px;
        width: 24px;
        background: #fff;
        border-radius: 50%;
        border: 1px solid purple;
        margin-top: -7px;
        cursor: pointer;
      }

      &::-moz-range-track {
        background: purple;
        border-radius: 4px;
        width: 100%;
        height: 13px;
        cursor: pointer;
      }

      &::-moz-range-thumb {
        -webkit-appearance: none;
        height: 24px;
        width: 24px;
        background: #fff;
        border-radius: 50%;
        border: 1px solid purple;
        margin-top: -7px;
        cursor: pointer;
      }

      &::-ms-track {
        background: purple;
        border-radius: 4px;
        width: 100%;
        height: 13px;
        cursor: pointer;
      }

      &::-ms-thumb {
        -webkit-appearance: none;
        height: 24px;
        width: 24px;
        background: #fff;
        border-radius: 50%;
        border: 1px solid purple;
        margin-top: -7px;
        cursor: pointer;
      }

    }

    label {
      background-color: #fff;
      position: absolute;
      top: -25px;
      left: 110px;
      width: 80px;
      padding: 5px 0;
      text-align: center;
      border-radius: 4px;
      box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    }
  }
}